package com.zrrd.mcl.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zrrd.mcl.model.product.BaseAttrInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BaseAttrInfoMapper extends BaseMapper<BaseAttrInfo> {

    //根据分类id查询平台属性及属性值
    List<BaseAttrInfo> selectBaseAttrInfoList(@Param("category1Id") Long category1Id,
                                              @Param("category2Id") Long category2Id,
                                              @Param("category3Id") Long category3Id
    );

    //根据skuid查询平台属性以及属性值
    List<BaseAttrInfo> selectBaseAttrInfoListBySkuId(Long skuId);
}
